//
// Created by Administrator on 12/24/2017.
//

#include <stdio.h>

int uadd_ok(unsigned x, unsigned y) {
    unsigned z = x + y;
    return z >= x;
}

int main() {
    printf("%d\n", uadd_ok(1, 1));

    printf("%d\n", uadd_ok(0x7FFFFFFF, 0x80000000));
    printf("%d\n", uadd_ok(0x80000000, 0x80000000));

    printf("%d\n", uadd_ok(0xFFFFFFFF, 0x1));
}